xen.git
20 years agoReplace direct_remap_area_pages with direct_remap_pfn_range to help fix PAE domain...
iap10@freefall.cl.cam.ac.uk [Wed, 7 Sep 2005 23:10:49 +0000 (23:10 +0000)]
Replace direct_remap_area_pages with direct_remap_pfn_range to help fix PAE domain building.
Signed-off-by: ian@xensource.com
20 years agoFix typo.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 21:35:05 +0000 (21:35 +0000)]
Fix typo.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 21:34:17 +0000 (21:34 +0000)]
merge?

20 years agoMove console tty/limit information into console directory in domain dir.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 21:24:34 +0000 (21:24 +0000)]
Move console tty/limit information into console directory in domain dir.
Also only store port number of console event channel.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDisable device info getting written to store when xend restarts.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 21:15:41 +0000 (21:15 +0000)]
Disable device info getting written to store when xend restarts.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDisable sync dbmap saves -- they remove nodes added by other tools.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 21:13:46 +0000 (21:13 +0000)]
Disable sync dbmap saves -- they remove nodes added by other tools.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoCreate /dev/xen/evtchn if it doesn't exist.
shand@ubuntu.eng.hq.xensource.com [Wed, 7 Sep 2005 20:30:00 +0000 (12:30 -0800)]
Create /dev/xen/evtchn if it doesn't exist.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoDon't leak memory when realloc fails.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 19:13:38 +0000 (19:13 +0000)]
Don't leak memory when realloc fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 19:01:31 +0000 (19:01 +0000)]
merge?

20 years agog/c unused xcs.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 19:01:05 +0000 (19:01 +0000)]
g/c unused xcs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agog/c unused xu extension.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 18:37:55 +0000 (18:37 +0000)]
g/c unused xu extension.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agog/c unused control message code.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 18:28:04 +0000 (18:28 +0000)]
g/c unused control message code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove control interface in kernels and domain builder.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 17:43:56 +0000 (17:43 +0000)]
Remove control interface in kernels and domain builder.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge
iap10@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 17:29:17 +0000 (17:29 +0000)]
merge

20 years agoTrivial fix for a nasty PAE bug.
iap10@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 17:28:49 +0000 (17:28 +0000)]
Trivial fix for a nasty PAE bug.
Signed-off-by: ian@xensource.com
20 years agoFix vif scripts for domains with more than one ip.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 17:26:27 +0000 (17:26 +0000)]
Fix vif scripts for domains with more than one ip.
As reported in bug 218 by christian@prehl.de.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove debug printk.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 16:52:49 +0000 (16:52 +0000)]
Remove debug printk.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAlways bind dom0 virqs to vcpu 0.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 16:50:55 +0000 (16:50 +0000)]
Always bind dom0 virqs to vcpu 0.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMake xenstored bind to domain exception virq directly, instead of via xcs.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 15:53:04 +0000 (15:53 +0000)]
Make xenstored bind to domain exception virq directly, instead of via xcs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRemove python virq code.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 14:19:05 +0000 (14:19 +0000)]
Remove python virq code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoTrigger domain cleanup on @releaseDomain watch-event instead of domain exc. virq.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 13:41:49 +0000 (13:41 +0000)]
Trigger domain cleanup on @releaseDomain watch-event instead of domain exc. virq.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix and cleanup error handling.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 13:40:06 +0000 (13:40 +0000)]
Fix and cleanup error handling.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd copyright notice and g/c some unused code.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 12:49:52 +0000 (12:49 +0000)]
Add copyright notice and g/c some unused code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 12:48:11 +0000 (12:48 +0000)]
merge?

20 years agoAdd python bindings for watches.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 12:47:45 +0000 (12:47 +0000)]
Add python bindings for watches.
Uses a watcher thread with per-watch registered callbacks.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoBe more sensitive to losing sync with platform timer.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 10:04:54 +0000 (10:04 +0000)]
Be more sensitive to losing sync with platform timer.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agomerge?
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 09:50:57 +0000 (09:50 +0000)]
merge?

20 years agoSmall plan9 loader patch from Tim Newsham.
kaf24@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 09:42:47 +0000 (09:42 +0000)]
Small plan9 loader patch from Tim Newsham.

20 years agoExtend save/restore interface to cope with domains >4GB by adding a level of indirection.
iap10@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 02:31:24 +0000 (02:31 +0000)]
Extend save/restore interface to cope with domains >4GB by adding a level of indirection.
Signed-off-by: ian@xensource.com
20 years agoFix dependencies.
cl349@firebug.cl.cam.ac.uk [Wed, 7 Sep 2005 01:03:02 +0000 (01:03 +0000)]
Fix dependencies.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:29:53 +0000 (18:29 +0000)]
merge?

20 years agoUse @releaseDomain watch-events.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:29:27 +0000 (18:29 +0000)]
Use @releaseDomain watch-events.
This replaces listening to the domain exception virq through xcs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoTiny printk info cleanup.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:27:01 +0000 (18:27 +0000)]
Tiny printk info cleanup.

20 years agoThe attached patch fixes two problems I ran into with the swiotlb code
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:25:00 +0000 (18:25 +0000)]
The attached patch fixes two problems I ran into with the swiotlb code
in unstable (changeset aeaa3c83f6e5). Tested on a dual Opteron x86-64
machine with 4GB of memory and a tg3 modified to only DMA below 2GB.

- swiotlb_dma_supported() checked that the device DMA mask was equal
or bigger than 4GB, when in fact all that's needed is that the device
be able to DMA into the swiotlb aperture (1GB on my AMD x86-64
machine). Some device are actually only 31-bit DMA capable, so this
would've tripped them.

- On some platforms, PCI unmaps and syncs are nops, so there's no need to
keep track of the dma_addr they need after the initial mapping. The
DMA API supports this via the DECLARE_PCI_UNMAP_ADDR macros (see
Documentation/DMA-mapping.txt). Since the swiotlb code does make us of
the dma_addr for swiotlb_unmap_xxx and (more importantly)
swiotlb_dma_sync_xxx, we need to define them to something
meaningful.

Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org>
20 years agoExit if xen_setup fails.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:18:56 +0000 (18:18 +0000)]
Exit if xen_setup fails.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd @releaseDomain watch-event.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:15:06 +0000 (18:15 +0000)]
Add @releaseDomain watch-event.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDestroy domain before cleaning it up.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:14:31 +0000 (18:14 +0000)]
Destroy domain before cleaning it up.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agophys_to_mach and mach_to_phys tables contain long entries, not
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 18:01:24 +0000 (18:01 +0000)]
phys_to_mach and mach_to_phys tables contain long entries, not
32-bit entries.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd xcs to include path for xcs_proto.h.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 17:43:36 +0000 (17:43 +0000)]
Add xcs to include path for xcs_proto.h.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoDisable xcs stop from xend script since it kills xenstored now.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 17:18:28 +0000 (17:18 +0000)]
Disable xcs stop from xend script since it kills xenstored now.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 17:00:25 +0000 (17:00 +0000)]
merge?

20 years agoMake xenstored listen to domain exception virqs.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 16:59:14 +0000 (16:59 +0000)]
Make xenstored listen to domain exception virqs.
The virq triggers a scan for domains which have gone away, and then
removes those domains.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAvoid warn_unused error on read() return value.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 16:10:22 +0000 (16:10 +0000)]
Avoid warn_unused error on read() return value.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoEnable xenstored optimisations.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 15:47:23 +0000 (15:47 +0000)]
Enable xenstored optimisations.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoReducing LOC (always a good thing) by eliminating duplicated functionality.
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 15:31:34 +0000 (15:31 +0000)]
Reducing LOC (always a good thing) by eliminating duplicated functionality.
vmx_platform.c/inst_copy_from_guest() now uses vmx_copy. Also shored up
vmx_copy to handle copies when paging is enabled and improved its error
handling.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoUpdate consoled to use xs_get_domain_path and cleanup domain tracking code.
cl349@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 13:43:28 +0000 (13:43 +0000)]
Update consoled to use xs_get_domain_path and cleanup domain tracking code.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix vmalloc fault path in arch/xen/i386 to correctly deal
kaf24@firebug.cl.cam.ac.uk [Tue, 6 Sep 2005 09:44:58 +0000 (09:44 +0000)]
Fix vmalloc fault path in arch/xen/i386 to correctly deal
with _PAGE_PRESENT being missing from init_mm's pmd
entry (*pmd_k).

Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix 64-bit build.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 20:05:58 +0000 (20:05 +0000)]
Fix 64-bit build.

20 years agoFix PCI iomem resource fixup.
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 19:53:44 +0000 (19:53 +0000)]
Fix PCI iomem resource fixup.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd @introduceDomain event-watch and replace consoled watch on /console.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 19:43:04 +0000 (19:43 +0000)]
Add @introduceDomain event-watch and replace consoled watch on /console.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix command line argument parsing.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 18:55:08 +0000 (18:55 +0000)]
Fix command line argument parsing.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd -Werror to xenstore build and fix failure.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 18:53:08 +0000 (18:53 +0000)]
Add -Werror to xenstore build and fix failure.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix the balloon driver to do work in smaller batches, and
kaf24@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 17:51:55 +0000 (17:51 +0000)]
Fix the balloon driver to do work in smaller batches, and
not use a vmalloc'ed mfn list which may not be mapped into
all page tables.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoAdd missing libxenstore.so dependency for xenstore client programs.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 17:21:08 +0000 (17:21 +0000)]
Add missing libxenstore.so dependency for xenstore client programs.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoRename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add libxenstore binding.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 16:00:03 +0000 (16:00 +0000)]
Rename XS_GET_DOMAIN_PATH to XS_GET_DOMAIN_PATH and add libxenstore binding.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix typo.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 15:46:12 +0000 (15:46 +0000)]
Fix typo.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoOn suspend, canonicalize store and console mfns in the guest.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 15:32:14 +0000 (15:32 +0000)]
On suspend, canonicalize store and console mfns in the guest.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 14:54:05 +0000 (14:54 +0000)]
merge?

20 years agoGet rid of suspend record, start info holds all the info now.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 14:53:39 +0000 (14:53 +0000)]
Get rid of suspend record, start info holds all the info now.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoPass live flag as number, not "True"/"False".
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 14:48:44 +0000 (14:48 +0000)]
Pass live flag as number, not "True"/"False".
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoOnly remove domain from store once it's suspended.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 14:45:19 +0000 (14:45 +0000)]
Only remove domain from store once it's suspended.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoKeep start_info in page provided by domain builder instead of making a copy.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 14:04:36 +0000 (14:04 +0000)]
Keep start_info in page provided by domain builder instead of making a copy.
- page is moved next to store/console pages -- these are never put in the
  free page pool by the domain
- xen_start_info is now a pointer to the original page instead of the copy
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoCRAMFS needs to be compiled in to xen_defconfig_x86_64 not a module.
iap10@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 11:20:14 +0000 (11:20 +0000)]
CRAMFS needs to be compiled in to xen_defconfig_x86_64 not a module.
Signed-off-by: ian@xensource.com
20 years agoFree grant reference when block device shuts down.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 08:23:05 +0000 (08:23 +0000)]
Free grant reference when block device shuts down.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 08:22:21 +0000 (08:22 +0000)]
merge?

20 years agoSuspend console after xenbus, resume console before xenbus.
cl349@firebug.cl.cam.ac.uk [Mon, 5 Sep 2005 08:21:58 +0000 (08:21 +0000)]
Suspend console after xenbus, resume console before xenbus.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix build.
shand@ubuntu.eng.hq.xensource.com [Sun, 4 Sep 2005 23:51:39 +0000 (15:51 -0800)]
Fix build.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoFix build.
cl349@firebug.cl.cam.ac.uk [Sun, 4 Sep 2005 22:45:45 +0000 (22:45 +0000)]
Fix build.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoUpdates to blktap driver and user code.
akw27@arcadians.cl.cam.ac.uk [Sun, 4 Sep 2005 21:19:44 +0000 (21:19 +0000)]
Updates to blktap driver and user code.

Mostly this makes the tap code work again with all of the changes that
have happened to the block drivers recently.  We now use a shared page
per VBD (to the driver), and handle control information through the
store.  The taplib interfaces have changed to be based around per-vbd
data structures that you can attach arbitrary handlers for.

There is also initial code for a user-level blockback driver, which
aims to get around the use of loopbacks for file-based vbds.  Still
plenty of work to do here -- this is a working incremental checkin and
I'm away from this for the next four weeks.

Signed-off-by: Andrew Warfield <andrew.warfield@cl.cam.ac.uk>
20 years agoFix build dependency issue.
cl349@firebug.cl.cam.ac.uk [Sun, 4 Sep 2005 15:08:16 +0000 (15:08 +0000)]
Fix build dependency issue.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 18:48:59 +0000 (18:48 +0000)]
merge?

20 years agoUpdate suspend/resume for new console code.
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 18:48:39 +0000 (18:48 +0000)]
Update suspend/resume for new console code.
- translate console mfn to pfn
- unbind/bind console evtchn
- recover console mfn on restore
- trigger xenconsoled refresh after mfn is put in store
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge fixup
iap10@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 18:40:04 +0000 (18:40 +0000)]
merge fixup

20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 18:24:46 +0000 (18:24 +0000)]
merge?

20 years agomerge
iap10@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 18:15:39 +0000 (18:15 +0000)]
merge

20 years agoFix to allow -xen and -xen0 kernels to be used as unprivilged guests.
iap10@freefall.cl.cam.ac.uk [Sat, 3 Sep 2005 17:14:20 +0000 (17:14 +0000)]
Fix to allow -xen and -xen0 kernels to be used as unprivilged guests.
Signed-off-by: ian@xensource.com
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 16:58:50 +0000 (16:58 +0000)]
merge?

20 years agoRestore printk to output evtchn binding error.
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 16:57:54 +0000 (16:57 +0000)]
Restore printk to output evtchn binding error.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd support in libxenstore for using the xenbus_dev store connection.
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 16:54:38 +0000 (16:54 +0000)]
Add support in libxenstore for using the xenbus_dev store connection.
Also add simple read/write/rm clients for command line access to the
store (using the xenbus_dev store connection).
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoAdd driver to use the kernel's xenbus connection from user-space.
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 16:52:12 +0000 (16:52 +0000)]
Add driver to use the kernel's xenbus connection from user-space.
The driver exports xs_talkv to user-space, allowing programs running in
the domain to use the kernel's xenbus connection.  Intended use is driver
domain device configuration where the driver domain is not the domain
running xenstored.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoFix debug build that was broken by recent shadow pagetable checkin.
iap10@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 16:33:53 +0000 (16:33 +0000)]
Fix debug build that was broken by recent shadow pagetable checkin.
Signed-off-by: ian@xensource.com
20 years agoFree struct file file_private on release.
cl349@firebug.cl.cam.ac.uk [Sat, 3 Sep 2005 16:32:53 +0000 (16:32 +0000)]
Free struct file file_private on release.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoEnable 'live' migration from a tools pov; prior to this the 'live' flag was
shand@ubuntu.eng.hq.xensource.com [Sat, 3 Sep 2005 01:36:29 +0000 (17:36 -0800)]
Enable 'live' migration from a tools pov; prior to this the 'live' flag was
being ignored by xend/xc_linux_save.

Signed-off-by: Steven Hand <steven@xensource.com>
20 years agoAttached are the patches for new ioemu communication mechanism. The new
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:55:24 +0000 (17:55 +0000)]
Attached are the patches for new ioemu communication mechanism. The new
mechanism provides richer I/O operation semantics, such as and,or,xor
operation on MMIO space. This is necessary for operating systems such
as Windows XP and Windows 2003.

This is the first part of a two part patch. This patch applies to ioemu.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoNow that unaligned page overlapping PIO works for Xen, it is time to
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:54:53 +0000 (17:54 +0000)]
Now that unaligned page overlapping PIO works for Xen, it is time to
eliminate the work around in the rombios.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoAttached are the patches for new ioemu communication mechanism. The new
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:54:34 +0000 (17:54 +0000)]
Attached are the patches for new ioemu communication mechanism. The new
mechanism provides richer I/O operation semantics, such as and,or,xor
operation on MMIO space. This is necessary for operating systems such
as Windows XP and Windows 2003.

This is the second part of a two part patch. This patch applies to xen.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoVarious minor vmxassist cleanups.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:53:52 +0000 (17:53 +0000)]
Various minor vmxassist cleanups.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoWe need to be more precise and restore the %eip.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:53:34 +0000 (17:53 +0000)]
We need to be more precise and restore the %eip.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoHandle page overlapping copies.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:53:04 +0000 (17:53 +0000)]
Handle page overlapping copies.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoQemu-dm dumps core with the pcnet device. This patches fixes it.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:52:37 +0000 (17:52 +0000)]
Qemu-dm dumps core with the pcnet device. This patches fixes it.

When pcnet_receive calls pcnet_poll, which polls the receive and the send
rings. Whenever there is an element in the send ring that is owned by
the Lance chip it will call pcnet_transmit and send it. When the element
is the endp(acket), pcnet_transmit will copy it out, send the packet
(qemu_send_packet) and then clear the owner bit. Somewherer along the
qemu_send_packet execution path, pcnet_recieve is called again, which
calls pcnet_poll and starts this whole process again. This very rapidly
leads to a stack overflow and crashes qemu.

The fix is simple, stop the recursion. Once the packet is copied into
qemu datatstructure (before qemu_send_packet is called!), the owner bit
on the ring element should be cleared.

Signed-Off-By: Leendert van Doorn <leendert@watson.ibm.com>
20 years agoFix preemption-check race in memory_op hypercall.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 17:02:08 +0000 (17:02 +0000)]
Fix preemption-check race in memory_op hypercall.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoFix writing to mmap'ed /dev/mem region mapped PROT_WRITE
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 16:51:55 +0000 (16:51 +0000)]
Fix writing to mmap'ed /dev/mem region mapped PROT_WRITE
and MAP_PRIVATE. This is in fact a generic Linux bug.

Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoInstall hotplug script(s) unconditionally.
cl349@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 14:20:12 +0000 (14:20 +0000)]
Install hotplug script(s) unconditionally.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agomerge?
cl349@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 14:17:08 +0000 (14:17 +0000)]
merge?

20 years agoRestore configurability of vif bring up script and passing arguments to the script.
cl349@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 14:15:49 +0000 (14:15 +0000)]
Restore configurability of vif bring up script and passing arguments to the script.
Signed-off-by: Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
20 years agoMini-os fixes from Simon Kagstrom.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 10:04:42 +0000 (10:04 +0000)]
Mini-os fixes from Simon Kagstrom.

20 years agoMissing shadow files.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 10:04:11 +0000 (10:04 +0000)]
Missing shadow files.

20 years agoThis patch is to boot 32-bit VMX guest on the 64-bit host.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 09:43:32 +0000 (09:43 +0000)]
This patch is to boot 32-bit VMX guest on the 64-bit host.
Double-compile is used to make both 64-bit guest and 32-bit guest can
work, the shadow page-table uses current 64-bit shadow code's structure
to simulate 32-bit guest's 2-level page-table.

Signed-off-by: Chengyuan Li <chengyuan.li@intel.com>
Signed-off-by: Xiaohui Xin <xiaohui.xin@intel.com>
Signed-off-by: Jun Nakajima <jun.nakajima@intel.com>
20 years agoClean up tools/check error reporting. Remove logging.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 09:02:13 +0000 (09:02 +0000)]
Clean up tools/check error reporting. Remove logging.
Signed-off-by: Keir Fraser <keir@xensource.com>
20 years agoNew scripts I missed from previous security patch.
kaf24@firebug.cl.cam.ac.uk [Fri, 2 Sep 2005 08:06:59 +0000 (08:06 +0000)]
New scripts I missed from previous security patch.